package cn.itcast.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@Table("sys_dept")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

   // @TableId(value = "dept_id", type = IdType.AUTO)
    private Long deptId;

    /**
     * 上级部门ID，一级部门为0
     */
    private Long parentId;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer orderNum;

    private String cascaderDept;

    /**
     * 创建用户id
     */
    private String createId;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModified;

    private Integer deptTypeId;

    private Integer isProject;

    /**
     * 所有上级部门,','隔开
     */
    private String parentIds;

    /**
     * 所有上级部门,','隔开
     */
    private String logo;

}
